package com.matt.domain.care;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 提问记录
 *
 */
@Entity
@Data
@Table(name = "hl_daily_record", uniqueConstraints = {@UniqueConstraint(columnNames = {"daily", "childId"})})
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class HLDailyRecord extends HLCareBaseRecord {

//    @Column(columnDefinition = " datetime  COMMENT ' 创建人'")
//    private Date createTime;
//    @Column(columnDefinition = " varchar(32)  COMMENT '孩子id'")
//    private String childId;
//
//    @Column(columnDefinition = " varchar(32)  COMMENT '孩子姓名'")
//    private String childName;

    @Column(columnDefinition = " varchar(32)  COMMENT '日期，如20210901'")
    private String daily;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '是否家长可见 0：否，1是' "  )
    private Boolean granted = false;

    @Column(columnDefinition = " varchar(32)  COMMENT '家长feed流对象id'")
    private String feedId;

    ///睡眠
    @Column(columnDefinition = " int default 0  COMMENT '睡眠数量'")
    private Integer sleepCount = 0;

    @Column(columnDefinition = " int default 3 COMMENT '睡眠状态枚举'")
    private Integer sleepStatusVal = 3;

    @Column(columnDefinition = " varchar(32)  COMMENT '日期，如20210901'")
    private String sleepStatus;

    ///如厕
    @Column(columnDefinition = " int  default 0  COMMENT '如厕数量'")
    private Integer pottyCount = 0;

    @Column(columnDefinition = " int  default 3  COMMENT '如厕状态枚举'")
    private Integer pottyStatusVal = 3;

    @Column(columnDefinition = " varchar(32)  COMMENT '最后一次如厕状态'")
    private String pottyStatus;

    ///饮食
    @Column(columnDefinition = " int default 0 COMMENT '喂食数量'")
    private Integer feedingCount = 0;

    @Column(columnDefinition = " int default 3 COMMENT '喂食状态枚举'")
    private Integer feedingStatusVal = 3;

    @Column(columnDefinition = " varchar(32) COMMENT '最后一次喂食状态'")
    private String feedingStatus;

    ///活动
    @Column(columnDefinition = " int default 0 COMMENT '活动数量'")
    private Integer activityCount = 0;

    @Column(columnDefinition = " int default 3 COMMENT '活动状态枚举'")
    private Integer activityStatusVal = 3;

    @Column(columnDefinition = " varchar(32)  COMMENT '最后一次活动状态'")
    private String activityStatus;

    ///服药
    @Column(columnDefinition = " int default 0 COMMENT '服药数量'")
    private Integer medicationCount = 0;

    @Column(columnDefinition = " int default 3 COMMENT '服药状态枚举'")
    private Integer medicationStatusVal = 3;

    @Column(columnDefinition = " varchar(32)  COMMENT '最后一次服药状态'")
    private String medicationStatus;

    @Column(columnDefinition = " varchar(512)  COMMENT '老师叮嘱'")
    private String advice;

    //喂奶
    @Column(columnDefinition = " int  default 0  COMMENT '喂奶数量'")
    private Integer  nurseCount = 0;


    ///大小便
    @Column(columnDefinition = " int  default 0  COMMENT '大小便数量'")
    private Integer defecationCount = 0;

}
